"""
URLConf for Django user registration and authentication.

Recommended usage is a call to ``include()`` in your project's root
URLConf to include this URLConf for any URL beginning with
``/accounts/``.

"""

from django.conf.urls.defaults import *
from django.views.generic.simple import direct_to_template
from django.contrib.auth import views as auth_views
from registration.views import register

urlpatterns = patterns('',
    url(r'^register/$', 'best_buy_book.registration.views.register'),
    url(r'^register/complete/$','best_buy_book.registration.views.complete'),
    url(r'^manager/nuevoAutor/$', 'best_buy_book.registration.manager.nuevoAutor'),
    url(r'^manager/autorComplete/$', 'best_buy_book.registration.manager.complete'),
    url(r'^register/activate/(?P<user_id>\w+)/$', 'best_buy_book.registration.views.activate'),
    url(r'^register/activateComplete/$', 'best_buy_book.registration.views.activateComplete'),
    url(r'^login/$',
        auth_views.login,
        {'template_name': 'registration/login.html'},
        name='auth_login'),
    url(r'^logout/$',
        auth_views.logout,
        {'template_name': 'registration/logout.html'},
        name='auth_logout'),
)
                       
"""
                       url(r'^register/complete/$',
                           direct_to_template,
                           {'template': 'registration/registration_complete.html'},
                           name='registration_complete'),
                       )
                       url(r'^activate/(?P<activation_key>\w+)/$','activate'),
                       url(r'^password/change/$','passchange'),
                       url(r'^password/change/done/$','passchange_done'),
                       url(r'^password/reset/$','passreset'),
                       url(r'^password/reset/done/$','passchange_reset'),
"""
